package org.jeecg.modules.courseplanatom.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.courseplanatom.entity.CouCoursePlanAtom;

/**
 * @Description: cou_course_plan_atom
 * @author: baochangrong
 * @Date: 2022-02-17
 * @Version: V1.0
 */
public interface CouCoursePlanAtomMapper extends BaseMapper<CouCoursePlanAtom> {
    List<CouCoursePlanAtom> queryAllPage(Page<CouCoursePlanAtom> page,@Param("couCoursePlanAtom") CouCoursePlanAtom couCoursePlanAtom);

    List<CouCoursePlanAtom> coursePlanByCoursePlanId(String coursePlanId);
    /** 计划元素详情编辑 */
    boolean planAtomEdit(CouCoursePlanAtom couCoursePlanAtom);

    /** 计划元素详情新增 */
    boolean planAtomAdd(CouCoursePlanAtom couCoursePlanAtom);
    int insertUpgradeCouCoursePlanAtom(@Param("couCoursePlanAtom") CouCoursePlanAtom couCoursePlanAtom);
}
